<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVCoreWebView2CookieManager: Class TCoreWebView2CookieManager</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="TCoreWebView2CookieManager"></span><h1 class="cio">Class TCoreWebView2CookieManager</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Fields">Fields</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section"><a class="section" href="#PasDoc-Properties">Properties</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVCoreWebView2CookieManager.html">uWVCoreWebView2CookieManager</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCoreWebView2CookieManager = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
 Creates, adds or updates, gets, or or view the cookies. The changes would apply to the context of the user profile. That is, other WebViews under the same user profile could be affected. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager</a>&quot;&gt;See the ICoreWebView2CookieManager article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCoreWebView2CookieManager</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Fields"></span><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#FBaseIntf">FBaseIntf</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>;</code></td>
</tr>
</table>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#GetInitialized">GetInitialized</a></strong>: boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#Create-ICoreWebView2CookieManager-">Create</a></strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>); reintroduce;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#Destroy">Destroy</a></strong>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#CreateCookie-wvstring-wvstring-wvstring-wvstring-">CreateCookie</a></strong>(const aName, aValue, aDomain, aPath: <a href="uWVTypes.html#wvstring">wvstring</a>) : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#CopyCookie-ICoreWebView2Cookie-">CopyCookie</a></strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>) : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#GetCookies-wvstring-ICoreWebView2GetCookiesCompletedHandler-">GetCookies</a></strong>(const aURI : <a href="uWVTypes.html#wvstring">wvstring</a>; const aHandler: <a href="uWVTypeLibrary.ICoreWebView2GetCookiesCompletedHandler.html">ICoreWebView2GetCookiesCompletedHandler</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#AddOrUpdateCookie-ICoreWebView2Cookie-">AddOrUpdateCookie</a></strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#DeleteCookie-ICoreWebView2Cookie-">DeleteCookie</a></strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#DeleteCookies-wvstring-wvstring-">DeleteCookies</a></strong>(const aName, aURI : <a href="uWVTypes.html#wvstring">wvstring</a>): boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#DeleteCookiesWithDomainAndPath-wvstring-wvstring-wvstring-">DeleteCookiesWithDomainAndPath</a></strong>(const aName, aDomain, aPath : <a href="uWVTypes.html#wvstring">wvstring</a>): boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#DeleteAllCookies">DeleteAllCookies</a></strong>: boolean;</code></td>
</tr>
</table>
<span id="PasDoc-Properties"></span><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#Initialized">Initialized</a></strong> : boolean                     read <a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#BaseIntf">BaseIntf</a></strong>    : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>  read <a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf"></span><code><strong>FBaseIntf</strong>: <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetInitialized"></span><code>function <strong>GetInitialized</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Create-ICoreWebView2CookieManager-"></span><code>constructor <strong>Create</strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>); reintroduce;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Destroy"></span><code>destructor <strong>Destroy</strong>; override;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CreateCookie-wvstring-wvstring-wvstring-wvstring-"></span><code>function <strong>CreateCookie</strong>(const aName, aValue, aDomain, aPath: <a href="uWVTypes.html#wvstring">wvstring</a>) : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Create a cookie object with a specified name, value, domain, and path. One can set other optional properties after cookie creation. This only creates a cookie object and it is not added to the cookie manager until you call AddOrUpdateCookie. Leading or trailing whitespace(s), empty string, and special characters are not allowed for name. See ICoreWebView2Cookie for more details. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CopyCookie-ICoreWebView2Cookie-"></span><code>function <strong>CopyCookie</strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>) : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Creates a cookie whose params matches those of the specified cookie. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="GetCookies-wvstring-ICoreWebView2GetCookiesCompletedHandler-"></span><code>function <strong>GetCookies</strong>(const aURI : <a href="uWVTypes.html#wvstring">wvstring</a>; const aHandler: <a href="uWVTypeLibrary.ICoreWebView2GetCookiesCompletedHandler.html">ICoreWebView2GetCookiesCompletedHandler</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Gets a list of cookies matching the specific URI. If uri is empty string or null, all cookies under the same profile are returned. You can modify the cookie objects by calling ICoreWebView2CookieManager::AddOrUpdateCookie, and the changes will be applied to the webview. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="AddOrUpdateCookie-ICoreWebView2Cookie-"></span><code>function <strong>AddOrUpdateCookie</strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Adds or updates a cookie with the given cookie data; may overwrite cookies with matching name, domain, and path if they exist. This method will fail if the domain of the given cookie is not specified. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="DeleteCookie-ICoreWebView2Cookie-"></span><code>function <strong>DeleteCookie</strong>(const aCookie : <a href="uWVTypeLibrary.ICoreWebView2Cookie.html">ICoreWebView2Cookie</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Deletes a cookie whose name and domain/path pair match those of the specified cookie. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="DeleteCookies-wvstring-wvstring-"></span><code>function <strong>DeleteCookies</strong>(const aName, aURI : <a href="uWVTypes.html#wvstring">wvstring</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Deletes cookies with matching name and uri. Cookie name is required. All cookies with the given name where domain and path match provided URI are deleted. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="DeleteCookiesWithDomainAndPath-wvstring-wvstring-wvstring-"></span><code>function <strong>DeleteCookiesWithDomainAndPath</strong>(const aName, aDomain, aPath : <a href="uWVTypes.html#wvstring">wvstring</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Deletes cookies with matching name and domain/path pair. Cookie name is required. If domain is specified, deletes only cookies with the exact domain. If path is specified, deletes only cookies with the exact path. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="DeleteAllCookies"></span><code>function <strong>DeleteAllCookies</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Deletes all cookies under the same profile. This could affect other WebViews under the same user profile. </p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Initialized"></span><code>property <strong>Initialized</strong> : boolean                     read <a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns true when the interface implemented by this class is fully initialized. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="BaseIntf"></span><code>property <strong>BaseIntf</strong>    : <a href="uWVTypeLibrary.ICoreWebView2CookieManager.html">ICoreWebView2CookieManager</a>  read <a href="uWVCoreWebView2CookieManager.TCoreWebView2CookieManager.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns the interface implemented by this class. </p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
